package com.foomia.truego.parsers.json;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.foomia.truego.types.Group;
import com.foomia.truego.types.TruegoType;

public interface Parser<T extends TruegoType> {

    public abstract T parse(JSONObject json) throws JSONException;
    public Group parse(JSONArray array) throws JSONException;
}
